import 'package:flutter/material.dart';

///质感设计(Material Design),由Google退出的全新设计语言,旨在为手机,平板电脑,台式机和其他平台提供更一致,更广泛的外观和感觉
///
void main() => runApp(MaterialApp(
      title: 'Flutter教程',
      home: Home(),
    ));

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
          icon: Icon(Icons.menu),
          tooltip: '导航菜单',
          onPressed: null,
        ),
        title: Text('实例标题'),
        actions: <Widget>[
          IconButton(
            icon: Icon(Icons.search),
            tooltip: '搜索',
            onPressed: null,
          )
        ],
      ),
      body: Center(
        child: Text('hello,world'),
      ),
      floatingActionButton: FloatingActionButton(
        tooltip: '增加',
        child: Icon(Icons.add),
        onPressed: null,
      ),
    );
  }
}
